projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e45ea70
)
GtkIconCache: find_image_offset() return 0 if icon_name is NULL.
author
Juan Pablo Ugarte
<juanpablougarte@gmail.com>
Thu, 28 Nov 2013 19:56:11 +0000
(16:56 -0300)
committer
Juan Pablo Ugarte
<juanpablougarte@gmail.com>
Thu, 28 Nov 2013 19:56:11 +0000
(16:56 -0300)
This avoid a crash calling gtk_about_dialog_set_logo_icon_name() with a NULL icon_name.
gtk/gtkiconcache.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconcache.c
b/gtk/gtkiconcache.c
index 09aaa1b44eb654174c6c49579c1448cfdb3405f0..4eaff97b658521752064a0647aa6829987327efe 100644
(file)
--- a/
gtk/gtkiconcache.c
+++ b/
gtk/gtkiconcache.c
@@
-235,6
+235,9
@@
find_image_offset (GtkIconCache *cache,
guint32 image_list_offset, n_images;
int i;
+ if (!icon_name)
+ return 0;
+
chain_offset = cache->last_chain_offset;
if (chain_offset)
{